const { defineConfig } = require("@vue/cli-service");
const packageName = require("./package.json").name;
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 1100,
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
  },
  publicPath: process.env.NODE_ENV === "production" ? "/system/" : "/",
  outputDir: `../micro-web/${packageName}`,
  configureWebpack: {
    output: {
      libraryTarget: "umd",
      library: "m-system",
    },
  },
});
